<?php
/**
 *
 */
class Instr extends Instr {
    public function __construct() {
        parent::__construct();
        $this->load->model('YouDao_model', 'yd');
    }

    public function index() {
        // echo '我将开始一个有趣的项目';
        // 我要调用页面
        $this->load->view('instrument.html');
    }

    public function go($content = '') {
        // echo '这是来自php的数据';
        $data = $this->input->post('content');
        $data = $this->yd->translate($data);
        echo $data;
    }
}

?>